package com.int_tech.car.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liubch on 2017/11/19.
 */
@Entity
@Table(name = "c_car_in")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class CarInInfo {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(length = 8)
    private Integer id;

    //车牌号
    @Column(length = 64)
    private String carNumber;

    //车牌号
    @Column(length = 64)
    private String carCnumber;

    //入港时间
    @Column(length = 64)
    private String inTime;

    //场站id
    @Column(length = 8)
    private int stationId;

    //场站名称
    @Column(length = 64)
    private String stationName;

    //备注
    @Column(length = 64)
    private String mark;

    //创建时间
    @Temporal(TemporalType.TIMESTAMP)
    @Column(updatable = false)
    private Date createTime;

    //出入状态（1，入，2，出）
    @Column(length = 8)
    private int status;


    //备注
    @Column(length = 64)
    private String messionNumber;

}
